/*
 * XML Type:  OpenOrderBuyOther
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.OpenOrderBuyOther
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML OpenOrderBuyOther(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class OpenOrderBuyOtherImpl extends net.ofx.types.x2003.x04.impl.AbstractOpenOrderImpl implements net.ofx.types.x2003.x04.OpenOrderBuyOther
{
    
    public OpenOrderBuyOtherImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName UNITTYPE$0 = 
        new javax.xml.namespace.QName("", "UNITTYPE");
    
    
    /**
     * Gets the "UNITTYPE" element
     */
    public net.ofx.types.x2003.x04.UnitTypeEnum.Enum getUNITTYPE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(UNITTYPE$0, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.UnitTypeEnum.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "UNITTYPE" element
     */
    public net.ofx.types.x2003.x04.UnitTypeEnum xgetUNITTYPE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.UnitTypeEnum target = null;
            target = (net.ofx.types.x2003.x04.UnitTypeEnum)get_store().find_element_user(UNITTYPE$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "UNITTYPE" element
     */
    public void setUNITTYPE(net.ofx.types.x2003.x04.UnitTypeEnum.Enum unittype)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(UNITTYPE$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(UNITTYPE$0);
            }
            target.setEnumValue(unittype);
        }
    }
    
    /**
     * Sets (as xml) the "UNITTYPE" element
     */
    public void xsetUNITTYPE(net.ofx.types.x2003.x04.UnitTypeEnum unittype)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.UnitTypeEnum target = null;
            target = (net.ofx.types.x2003.x04.UnitTypeEnum)get_store().find_element_user(UNITTYPE$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.UnitTypeEnum)get_store().add_element_user(UNITTYPE$0);
            }
            target.set(unittype);
        }
    }
}
